package com.itheima.mymath;

public class demo2 {
    public static void main(String[] args) {
        int abs = Math.abs(-100);
        System.out.println(abs);

        double c = Math.ceil(11.5);
        System.out.println(c);

        double f = Math.floor(10.5);
        System.out.println(f);

        int max = Math.max(10, 20);
        System.out.println("max = " + max);

        int min = Math.min(10, 20);
        System.out.println("min = " + min);

        long r1 = Math.round(30.5);
        long r2 = Math.round(30.4);
        System.out.println(r1);
        System.out.println(r2);

        double random = Math.random();
        System.out.println(random);

        double p = Math.pow(3, 3);
        System.out.println(p);
    }
}
